﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{


    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public void text11()
        {
            string t = textBox1.Text;
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Patient Patient1 = new Patient();

            Patient1.name = textBox1.Text;
            Patient1.surname = textBox1.Text;

            MessageBox.Show(Patient1.name);
            //Form2 f2 = new Form2();
            //f2.AppPatient(Patient1);
        }

        private void button2_Click(object sender, EventArgs e)
        {
           // Form1 f = new Form1();
            //f.textBox1.Text;
           // Patient Patient1 = new Patient();
            MessageBox.Show(textBox1.Text);
        }
    }

    class nn
    {
        public void All(Form1 f)
        {
        //Form1 f = new Form1();
            f.text11();
        }
    }

    class Patient
    {
        public int id { get; set; }
        public string name { get; set; }
        public string surname;
        public string patronymic;
        public DateTime dateOfBirth;
        private string p;
    }
}
